package cn.csc.module.order.enums;

/**
 * 物流状态对应值
 */
public enum LogisticsStatusEnum {
    LOGISTICS_STATUS_ZT(0, "在途"),
    LOGISTICS_STATUS_LJ(1, "揽收"),
    LOGISTICS_STATUS_YN(2, "疑难"),
    LOGISTICS_STATUS_QS(3, "签收"),
    LOGISTICS_STATUS_TQ(4, "退签"),
    LOGISTICS_STATUS_PJ(5, "派件"),
    LOGISTICS_STATUS_TH(6, "退回"),
    LOGISTICS_STATUS_ZTOU(7, "转投"),
    LOGISTICS_STATUS_QG(8, "清关");

    private Integer value;
    private String label;

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
    LogisticsStatusEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }
    /**
     * 根据code获取枚举信息
     *
     * @param
     * @return
     */
    public static String getLable(Integer value) {
        for (LogisticsStatusEnum enums : LogisticsStatusEnum.values()) {
            if(enums.getValue()==value){
                return enums.getLabel();
            }
        }
        return null;
    }
}
